#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    int l=n/12;
    cout<<l*4+2<<endl;
    return 0;
}
